<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/login/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />  


</head>

<body>
<a href="/joke/category.do?method=create">新增</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/joke/category.do?method=saveStat">分类统计</a>&nbsp;&nbsp;&nbsp;&nbsp;

<br>
<TABLE border="1" cellspacing="0" cellpadding="3" width="99%">
<TR>
	<TD>序号</TD>
	<TD>名称</TD>
	<TD>排序</TD>
	<TD>笑话数</TD>
	<TD>操作</TD>
</TR>
<c:forEach var="obj" items="${list}" varStatus="status" >

<TR>
	<TD>${status.index + 1}&nbsp;</TD>
	<TD>${obj.category_name}&nbsp;</TD>
	<TD>${obj.sort}&nbsp;</TD>
	<TD>${obj.joke_number}&nbsp;</TD>

	<TD>
		<a href="/joke/category.do?method=edit&id=${obj.id}">编辑</a>
		<a href="/joke/category.do?method=delete&id=${obj.id}" onclick="{if(confirm('确定要删除?')){return true;}return false;}">删除</a>
		<a href="/joke/category.do?method=listJokeObj&id=${obj.id}" >所属joke</a>
		<a href="/joke/category.do?method=editUpdateToAnother&id=${obj.id}" onclick="{if(confirm('确定要合并分类?')){return true;}return false;}">合并到…</a>
	</TD>

</TR>
</c:forEach>
</TABLE>


</body>
</html>
